package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestMethodsController {
    @PostMapping("/getLogin")
    public String getLogin(@RequestParam("loginName") String loginName, @RequestParam("loginPwd") String loginPwd) {
        String result = loginName + loginPwd;
        return "传输参数成功" + result;
    }
}
